﻿My systems: 
dksrv104 - 7.1 empty         T:
dksrv131 - 7.1 with PASE     U:    
dksrv206 - 6.1 Development   P: 


Linux toolbox for AIX
----------------------
http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html


install PASE tools:
-------------------

Using descripton from:
http://www.youngiprofessionals.com/

	-> Open Source Binaries 

http://174.79.32.155/wiki/index.php/PASE/OpenSourceBinaries

Download or open link in winzip:
http://webfiles.icebreak.org/webfiles/PASE/download.zip

Extract to:
\\dksrv104\root\Qopensys

( my T: drive)

call qp2term (or ssh  nli@dksrv104)
> cd /QOpenSys/download
> ./setup.sh

Now RPM and WGET is ready... 

Simply get the zip tool:
------------------------
./wwwperzl.sh aix53 wget zip
./wwwperzl.sh aix53 rpm  zip

Does is work?
zip  test.zip   /www/systest/*.*

From explorer extract to T:\QOpenSys\download\
T:\QOpenSys\download\test.zip

Show the RPG 7.1 in 
T:\QOpenSys\download\www\systest

What else in the toolbox for AIX?
------------------------------------
./wwwperzl.sh aix53 list 

Get current version of ghost-script:
------------------------------------
Which ghost is availabel?
./wwwperzl.sh aix53 list | grep -i ghost 

What does that package require of packages? 
./wwwperzl.sh aix53 wgetv ghostscript-9.06-2

Now !! go get it:
./wwwperzl.sh aix53 wget ghostscript-9.06-2
Goto Showcase.... on DKSRV206...


install it:
./wwwperzl.sh aix53 rpm ghostscript-9.06-2

Try it:
cd /ghost_samples

gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16 -sOutputFile=./page%d.png -dFirstPage=1 -dLastPage=99 -q ./invoiceDemo.pdf

gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16 -sOutputFile=./page%d.png -dFirstPage=1 -dLastPage=99 -q ./invoiceDemo2.pdf


Showcase on DKSRV206:
P:/ghost

cd /ghost/samples
./SendHtmlMail.sh

go bluex/blueseries


What else in the box?
---------------------
We can use the "normal" install 
./wwwinstall.sh  --help


Samba server ...
----------------
http://www.ibm.com/developerworks/aix/library/au-aix_samba/
wwwperzl.sh  aix53  list samba
wwwperzl.sh  aix53  wget samba-3.6.22
wwwperzl.sh  aix53  rpm  samba-3.6.22

But now it is in 7.2 ( like OpenSsl) ... so
You can still use the SAMBA client to get files on a weindows server if QNTC sucks...



Shells:

    IBMI OPM shell QCMD
    IBMI ILE shell QSH 
    Bourne shell (sh) (qp2term) 
    C shell (csh)
    TC shell (tcsh)
    Korn shell (ksh)
    Bourne Again SHell (bash)


What shells - ASCII or EBCDIC? 
------------------------------
system "wrkactjob" | grep  -i NLI
system "wrksplf"   | grep RDY   > spool.txt 

list disk status:
db2 "select * from qsys2.SYSDISKS"  

But only the 6B22 disk:
db2 "select * from qsys2.SYSDISKS"  | grep -i 6B22

To out file:
db2 "select * from qsys2.SYSDISKS"  | grep -i 6B22  | iconv -f 277 -t 1252  > x.txt 

Prompt:
List all in user dir:
Ls –a /home/NLI 
	Update .profile
PS1='$(pwd):'


SSH:
----

Get stated:
http://www.ibm.com/developerworks/aix/library/au-sshsecurity/

STRTCPSVR

Mount ssh drive on a mac
cd / volumes
mkdir dksrv131
sshfs dksrv131:/www dksrv131
.. Vis RPG7.1 i systest 

Almindelig ssh 
ssh 
ls 
which ls
ls -l /opensys/usr... 


ssh dksrv206 'system "wrksplf"'   | subl 
ssh dksrv206 'system "wrkactjob"  | grep -i NLI'   | subl 

SSH and X11
-----------
X11 - applications
/QOpenSys/QIBM/ProdData/SC1/OpenSSH/openssh-4.7p1/etc/sshd_config

X11Forwarding yes
X11UseLocalhost no

Ubunto:

export DISPLAY=:0.0
ssh -X dksrv131

Vis.js


Hello in 5 ways:
______________________________________________________________________________

DKSRV131  U:

/home/nli 

Gcc - programs runs from the IFS:
---------------------------------
gcc -o hello hello.c
hello

Java
----
javac Hello.java
java Hello

which java? 

Ruby 
----
ruby hello.rb 
ruby hello2.rb 

power ruby: 
http://powerruby.com/
https://powerruby.worketc.com/kb?id=11


My app:
http://dksrv131:2222

->About -> Javascript ??

node.js
-------
node hello.js

BlueMix
-------








__________________________________________________________________________

RUBY:
på dksrv131

Get it:
http://powerruby.com/releases/power_ruby_current.zip

Intall it.
https://powerruby.worketc.com/kb?id=11

Setup:
https://powerruby.worketc.com/kb?id=22

til og med RAKE... 

__________________________________________________________________________
SQL-JSON

USerdefined tablefunctions

JSON:

items = [
	{
		"item": "iPhone", 
		"price" : 123.55 , 
		"type" : "phone",
		"Manufact":"APPLE",
		"4Gsupprt":true,
		"pixels":"5M", 
		"stock" : 9
	},{
		"item": "Ixus Plus", 
		"price" :   812.00 , 
		"type" : "camera" , 
		"Manufact" : "CANON" , 
		"pixels" : "5M" ,
		"stock" : 5
	}   
]


